-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autofocus Amount field if suddenly loose focus #16394
Autofocus Amount field if suddenly loose focus #16394
Conversation
I will take care of the checklist, I hope that works |
Reviewer Checklist
Screenshots/VideosWebN/A Mobile Web - ChromeScreen.Recording.2023-03-22.at.17.08.11.movMobile Web - SafariScreen.Recording.2023-03-22.at.17.06.57.movDesktopN/A iOSScreen.Recording.2023-03-22.at.17.11.25.movAndroidScreen.Recording.2023-03-22.at.17.11.41.mov |
Does this require C+ review? |
IMO, I think it's better to prevent losing focus when tap anywhere on the screen. Because input is supposed to be focused always. |
My suggestion: App/src/components/BigNumberPad.js Line 81 in e9cfaaa
Move this to parent view: App/src/pages/iou/steps/IOUAmountPage.js Line 257 in e9cfaaa
This approach also works perfect on desktop - when click any blank area inside this page: Screen.Recording.2023-03-22.at.7.02.36.PM.mov |
Yup suggestion is good - but doing this we will loose ability to move cursor Screen.Recording.2023-03-23.at.09.50.57.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xmiroslav thanks for checking it, figured this is super easy to go through so did removed the request for review from you.
If using current approach, it makes more sense to put the code here: App/src/pages/iou/steps/IOUAmountPage.js Line 182 in fb90cd8
to focus when press < button
|
Ah thats a good point, I havent expanded the code view |
@mountiny do you want me to fill missing videos (web, desktop) or just skip them since not affected? |
@0xmiroslav no need, thanks for help, as state above, this one did not need C+ testing or review given how simple it is. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.89-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.89-0 🚀
|
Details
User can click between numpad button, and will automatically loose focus, new typing will be done without cursor
Fixed Issues
$ #15855
$ #15855 (comment)
Tests
Offline tests
This feature doesn't change or is impacted by offline mode.>
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
cursor-web.mov
Mobile Web - Chrome
cursor-web-android.mov
Mobile Web - Safari
cursor-web-ios.mov
Desktop
cursor-desktop.mov
iOS
cursor-ios.mov
Android
cursor-android.mov